package transaction.mq.order.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import transaction.mq.order.model.XcTask;

@Repository
public interface XcTaskMapper extends Mapper<XcTask> {
    @Update("update xc_task t set t.version = #{version}+1 where t.id = #{id} and t.version = #{version}")
    int updateTaskVersion(@Param("id") String id, @Param("version") int version);
}